<%

switch = shibboleth_login_url

lang = I18n.locale.to_s[0, 2]

%>

<div class="aai-login">
  <div class="aai-login-title">
    <%= t('aai.login')  %>
  </div>
  <div class="aai-login-content">
    <div>
      <%= image_tag('/shibboleth/images/switch/switch-aai-logo.gif', :alt => 'SWITCHaai', :title => 'SWITCHaai', :style => 'margin-top: 2px;margin-bottom: 2px;') %>
    </div>
    <div class="aai-menu">
      <span class="aai-menu"> 
        <a href="http://www.switch.ch/<%= lang %>/aai/about/" class="switchaai"><%= t('aai.about')%></a>&nbsp;:&nbsp;
        <a href="http://www.switch.ch/<%= lang %>/aai/faq/" class="switchaai"><%= t('aai.faq') %></a>&nbsp;:&nbsp;
        <a href="http://www.switch.ch/<%= lang %>/aai/help/" class="switchaai"><%= t('aai.help') %></a>&nbsp;:&nbsp;
        <a href="http://www.switch.ch/<%= lang %>/aai/privacy/" class="switchaai"><%= t('aai.privacy') %></a> 
      </span>
    </div>
    <form method="post" action="/shibboleth/login_direct">
      <select name="login_uri">
        <option value="<%= switch %>"><%= t('aai.other_switch_members')%></option>
      </select>
      <br />
      <input type="submit" value="<%= t('aai.connect')%>">
    </form>
  </div>
  <div class="aai-login-footer"></div>
</div>